import {
    defineStore
} from 'pinia'

export const useOrderInfo = defineStore('order', {
    state: () => {
        return {
            orderId: 0
        }
    },
    persist: {
        enabled: true,
        strategies: [{
            storage: sessionStorage,
            paths: ['orderId'],
            key: "orderId"
        }],
    },
})